﻿<Window x:Class="WpfBindingIssue.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow"
        Width="525"
        Height="350">
    <Grid>
        <StackPanel HorizontalAlignment="Center"
                    VerticalAlignment="Center"
                    Orientation="Horizontal">
            <StackPanel.Resources>
                <Style TargetType="{x:Type Button}">
                    <Setter Property="Margin" Value="10,20,10,0" />
                    <Setter Property="Width" Value="100" />
                </Style>
            </StackPanel.Resources>
            <Button Click="btnShowWindow_Click" Content="Show Window" />
            <Button Click="btnCheckIsAlive_Click" Content="Check IsAlive" />
        </StackPanel>
    </Grid>
</Window>
